feat(admin/fe): 슈퍼어드민 brand picker UI#203
Open
bat1120 wants to merge 1 commit into
Open
Conversation
슈퍼어드민이 시뮬 입력폼에서 14571개 brand 검색·선택 가능. - frontend/src/auth/AuthContext.tsx: User.role 에 'superadmin' 추가 - frontend/src/types/admin.ts: AdminBrand, SupportedIndustry, AdminBrandsResponse 타입 - frontend/src/api/client.ts: listAdminBrands, listAdminIndustries 메서드 - frontend/src/hooks/useAdminBrands.ts: debounce 300ms + AbortController + 403 핸들링 - frontend/src/components/admin/AdminBrandPicker.tsx: 모달 (검색 + 업종 필터칩 + 페이징) - 가맹점 수 / 평균 매출 표시 - source 라벨 (FTC / 회원사) - ESC/backdrop 클릭으로 닫기 - frontend/src/App.tsx (SimulatorDashboard): - role==='superadmin' 일 때만 [브랜드 선택] FormField 노출 - adminBrand 선택 시 brand_name 오버라이드 + businessType 자동 설정 - 해제 버튼으로 picker 비활성화 가능 검증: tsc --noEmit clean / vite build 성공 / prettier 통과. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/admin/brands) 의존role === 'superadmin'만 노출, 일반 master/manager 에게는 보이지 않음구성
frontend/src/auth/AuthContext.tsx:User.roleliteral에'superadmin'추가frontend/src/types/admin.ts: AdminBrand / SupportedIndustry / AdminBrandsResponsefrontend/src/api/client.ts:listAdminBrands,listAdminIndustriesfrontend/src/hooks/useAdminBrands.ts: debounce 300ms + AbortController + 403 처리frontend/src/components/admin/AdminBrandPicker.tsx: 모달 (검색 + 업종칩 + 페이징, 가맹점수·매출 표시)frontend/src/App.tsx(SimulatorDashboard):role==='superadmin'시만 [브랜드 선택] FormField 노출brand_name오버라이드 +businessType자동 설정Test plan
tsc --noEmitcleanvite build성공의존
/admin/brands라우터 머지 필요dev로 변경Base 전략
현재 base =
IM3-superadmin-brand-picker(BE 브랜치). 향후:dev로 변경🤖 Generated with Claude Code